package com.yangzhang.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 网站配置
 *
 * @author YangZhang
 * @version 1.0.0
 * @createTime 2022年08月31日 17:27:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "tb_website_config")
public class WebsiteConfig {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 配置信息
     */
    private String config;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}

// TODO 网站配置
//{
//        "alipayQRCode": "https://static.talkxj.com/photos/13d83d77cc1f7e4e0437d7feaf56879f.png",
//        "gitee": "",
//        "github": "",
//        "isChatRoom": 1,
//        "isCommentReview": 0,
//        "isEmailNotice": 1,
//        "isMessageReview": 0,
//        "isMusicPlayer": 1,
//        "isReward": 1,
//        "qq": "",
//        "socialLoginList": ["qq", "weibo"],
//        "socialUrlList": ["qq", "github", "gitee"],
//        "touristAvatar": "https://static.talkxj.com/photos/0bca52afdb2b9998132355d716390c9f.png",
//        "userAvatar": "https://static.talkxj.com/config/2cd793c8744199053323546875655f32.jpg",
//        "websiteAuthor": "网站作者",
//        "websiteAvatar": "https://static.talkxj.com/config/43a07ac1ca201143f7b938d0791124fc.png",
//        "websiteCreateTime": "2019-12-10",
//        "websiteIntro": "网站简介",
//        "websiteName": "个人博客",
//        "websiteNotice": "请前往后台管理->系统管理->网站管理处修改信息",
//        "websiteRecordNo": "备案号",
//        "websocketUrl": "ws://127.0.0.1:8080/websocket",
//        "weiXinQRCode": "https://static.talkxj.com/photos/4f767ef84e55ab9ad42b2d20e51deca1.png"
//        }